package group_1.MultiSnake;

import org.anddev.andengine.entity.sprite.Sprite;
import org.anddev.andengine.opengl.texture.region.TextureRegion;

/**
 * Abstract class representing items.
 * All items sucha as bullets inherits this class.
 * 
 */
public abstract class Item extends Sprite{

	/**
	 * Constructor - construct a new Item object
	 * @param pX The start x-position of the item
	 * @param pY The start y-position of the item
	 * @param pWidth The width of the item
	 * @param pHeight The height of the item
	 * @param pTextureRegion The image representing the item
	 */
	public Item(float pX, float pY, float pWidth, float pHeight, TextureRegion pTextureRegion) {
		super(pX, pY, pWidth, pHeight, pTextureRegion);
	}
	
	/**
	 * Called when the item is used
	 */
	public abstract void use();
	
	/**
	 * Called once every loop in the gameengine
	 */
	public abstract void loopAction();
}
